<include file="Public:header"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
    <include file="Public:nav"/>
  <form method="post" class="J_ajaxForm" action="{:U("Category/add")}">
    <div class="J_tabs_contents">
      <div>
        <div class="h_a">基本属性</div>
        <div class="table_full">
          <table width="100%" class="table_form ">
            <tr>
              <th width="100">上级栏目：</th>
              <td><select name="parentid" id="parentid">
                  <option value='0'>≡ 作为一级栏目 ≡</option>
                  {$category}
                </select></td>
            </tr>
            <tr>
              <th>添加方式：</th>
              <td><ul class="switch_list cc ">
                  <li>
                    <label>
                      <input type='radio' name='isbatch' value='1'  onClick="$('#normal_add').hide();$('#catdir_tr').hide();$('#batch_add').show();$('#catname').attr('disabled',true);$('#catdir').attr('disabled',true);">
                      <span>批量添加</span></label>
                  </li>
                  <li>
                    <label>
                      <input type='radio' name='isbatch' value='0'  checked onClick="$('#normal_add').show();$('#catdir_tr').show();$('#batch_add').hide();$('#catname').attr('disabled',false);$('#catdir').attr('disabled',false);">
                      <span>单条添加</span></label>
                  </li>
                </ul></td>
            </tr>
            <tr id="batch_add" style="display:none">
              <th>栏目名称：</th>
              <td><textarea name="batch_add" maxlength="255" style="width:300px;height:150px;"></textarea><br/>例如：<br/>
国内新闻|china<br/>
国际新闻|world
              </td>
            </tr>
            <tr id="normal_add">
              <th>栏目名称：</th>
              <td><input type="text" name="catename" class="input" value=""></td>
            </tr>
            <tr id="catdir_tr">
              <th>英文名称：</th>
              <td><input type="text" name="enname" class="input" value=""></td>
            </tr>
              <tr>
                  <th>是否终级栏目：</th>
                  <td><input name="child" type="checkbox" id="child"  value="0">
                      终极栏目 (<font color="#FF0000">终极栏目才可以添加信息</font>)</td>
              </tr>
            <tr>
              <th>栏目图标：</th>
              <td><Form function="images" parameter="image,image,'',system"/><span class="gray"> 双击可以查看图片！</span></td>
            </tr>
            <tr>
              <th>wap栏目图标：</th>
              <td><Form function="images" parameter="wap_image,wap_image,'',system"/><span class="gray"> 双击可以查看图片！</span></td>
            </tr>
            <tr>
              <th>栏目简介：</th>
              <td><textarea name="content" maxlength="255" style="width:300px;height:60px;"></textarea></td>
            </tr>
              <tr>
                  <th>栏目排序：</th>
                  <td><input type="text" name="sort" class="input" value="0" /></td>
             </tr>
             <tr>
              <th>热搜：</th>
              <td><ul class="switch_list cc ">
                  <li>
                    <label>
                      <input type='radio' name='iflight' value='1'>
                      <span>是</span></label>
                  </li>
                  <li>
                    <label>
                      <input type='radio' name='iflight' value='0' checked>
                      <span>否</span></label>
                  </li>
                </ul></td>
            </tr>
              <tr>
                  <th>审核:</th>
                  <td><select name="status">
                          <option value="1">审核</option>
                          <option value="0">不审核</option>
                      </select>
                  </td>
              </tr>
          </table>
        </div>
      </div>

    </div>
    <div class="btn_wrap">
      <div class="btn_wrap_pd">
        <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">提交</button>
      </div>
    </div>
  </form>
</div>
<script type="text/javascript" src="__JS__/common.js"></script>
<script type="text/javascript" src="__JS__/content_addtop.js"></script>

</body>
</html>